﻿using Microsoft.Extensions.DependencyInjection;
using System;
using Mrc.Config;
namespace Mrc.RabbitMQ
{
    internal sealed class RabbitMQOptionsExtension:IMrcConfigOptionsExtension
    {
        private readonly Action<RabbitMQOptions> _configure;
        public RabbitMQOptionsExtension(Action<RabbitMQOptions> configure)
        {
            _configure = configure;
        }
        public void AddServices(IServiceCollection services)
        { 
            services.Configure(_configure);
        }
    }
}
